import Load from "react-loadable";
import { Loading } from "antd-mobile";

const LoadingComponent = () => {
	return (
		<div>
			<Loading />
		</div>
	);
};
export default (loader: any, loading = LoadingComponent) => {
	return Load({
		loader,
		loading,
	});
};
